<?php
class Pdf_model extends CI_MODEL
	{
		public function __construct()
			{
				parent::__construct();
				$this->load->database();
				
			}
		
		function count_row()
			{
				return $this->db->count_all('projects');
				//return $query->row_array();
			}
		function populate_data()
			{
				
				$query = $this->db->get('projects');
				return $query->result_array();
			}
			
		
	}

?>